const express = require('express')
const router = express.Router()
const handlerFn = require('./handler/user')
const expressJoi = require('@escook/express-joi')
const { reg_userLogin } = require('../schema/user')

// 用户登录
router.post('/vod/user/login', expressJoi(reg_userLogin), handlerFn.handlerUserLogin)
// 获取用户信息
router.get(`/vod/user/info`, handlerFn.handlerGetUserInfo)

module.exports = router
